package it.polimi.traveldream.web;

import it.polimi.traveldream.ExcursionDTO;
import it.polimi.traveldream.GestioneShowExcursionLocal;

import java.util.List;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

@ManagedBean(name="gestioneShowExcursionLocal")
@RequestScoped
public class ShowExcursionBean {
	@EJB
	private GestioneShowExcursionLocal gestioneShowExcursionLocal; 
	
	private List<ExcursionDTO> excursions;
	
	
	public List<ExcursionDTO> getExcursions(){
		this.excursions=gestioneShowExcursionLocal.showExcursion();
		return this.excursions;
	}
	
	public void setExcursions(List<ExcursionDTO> excursions){
		this.excursions=excursions;
	}
	
	

}

